package com.guiji.text2video.job.controller;

import com.guiji.text2video.common.core.web.controller.BaseController;
import com.guiji.text2video.common.core.web.domain.AjaxResult;
import com.guiji.text2video.job.service.IYoutubeExeclResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: cms-vue-plus
 * @description:
 * @author: gaoX
 * @date 2022/2/11 14:09
 */
@RestController
@RequestMapping("/analysis")
public class AnalysisController extends BaseController {
    @Autowired
    IYoutubeExeclResultService iYoutubeExeclResultService;

    /**
     * 生成excel
     */
    @GetMapping("/makeExcel")
    public AjaxResult makeExcel(){
        iYoutubeExeclResultService.makeExcel();
        return AjaxResult.success();
    }
}
